package com.infocollect.project.api.ui;

import com.infocollect.project.api.entity.TappActEntity;
import com.infocollect.project.form.vo.R;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (TappAct)表控制层
 *
 * @author makejava
 * @since 2019-12-25 10:32:27
 */
@Api(value = "tappAct", tags = "节点信息")
@RestController
@RequestMapping("tappAct")
public class TappActController {
    /**
     * 服务对象
     */
    @Resource
    private com.infocollect.project.api.service.ITappActService ITappActService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public R<TappActEntity> selectOne(Long id) {

        return R.newOk( this.ITappActService.queryById(id));
    }


}